<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>房屋资产-各年数据对比弹出表格</title>
    <link rel="stylesheet" href="../css/base.css">
    <!--引入layui css-->
    <link rel="stylesheet" href="../js/layer/layui-v2.3.0/layui/css/layui.css">
    <style>
        .layer-wrap{
            width: 100%;
        }
        .layer-head{
            width: 100%;
            padding: 20px 0 0 0;
            text-align: center;
        }
        .title{
            display: inline-block;
            font-size:22px;
            line-height: 22px;
            color:#000;
        }
        .layer-content{
            width: 100%;
            height: 300px;
            padding: 15px 50px;
            overflow-x: hidden;
            overflow-y: auto;
            -webkit-box-sizing: border-box;
            -moz-box-sizing: border-box;
            box-sizing: border-box;
        }
        .layui-table{
            width: 100%;
        }
        .layui-table thead th,.layui-table tbody td{
            text-align: center;
            background-color: #fff;
        }
        .data-picker{
            display:inline-block;
            width:150px;
            text-align: center;
        }
        .data-picker>input.layui-input{
            display: inline-block;
            width: 80%;
        }
        .data-picker>span{
            display: inline-block;
            font-size:16px;
            line-height: 16px;
        }
    </style>
</head>
<body>
<div class="layer-wrap">
    <div class="layer-head">
        <span class="title" id="layerTitle"></span>
    </div>
    <div class="layer-content">
        <table class="layui-table" lay-skin="line" lay-size="lg">
            <thead>
            <tr>
                <th>资产类别</th>
                <th >
                    <div class="data-picker">
                        <input type="text" class="layui-input infos-date-input" id="totalAsset" placeholder="请选择时间" lay-key="totalAsset">
                        <span>年</span>
                    </div>
                </th>
                <th>数量</th>
            </tr>
            </thead>
            <tbody>
            <tr>
                <td>普通电脑</td>
                <td>2018</td>
                <td>200</td>
            </tr>
            <tr>
                <td>涉密电脑</td>
                <td>2018</td>
                <td>200</td>
            </tr>
            <tr>
                <td>打印机</td>
                <td>2018</td>
                <td>200</td>
            </tr>

            </tbody>
        </table>
    </div>
</div>

<script src="../js/jquery/jquery.min.js"></script>
<!--引入layui-->
<script src="../js/layer/laydate/laydate.js"></script>
<script src="../js/layer/layui-v2.3.0/layui/layui.all.js"></script>
<script>
    $(function () {
        laydate.render({
            elem: '#totalAsset'
            ,type: 'year'
        });
        // 获取URL传参
        var temp = location.search;
        var arr = temp.split('?');
        var str = decodeURI(arr[1]);
        $('#layerTitle').text(str);
    })
</script>
</body>
</html>